<?php

class Core_Backend_Component_Subject_View_Category_Edit extends Core_Backend_Component_Subject_View_Category_Create {

    protected function buildForm($form){
        parent::buildForm($form);
//        $model = $this->getModel();
//        $form->addHiddenField('source_parent_id', 'category[source_parent_id]', $model->getParentId())
//             ->addHiddenField('source_sorting', 'category[source_sorting]', $model->getSorting());
//        $options = &$form->getInput('parent_id')->getOptions();
//        foreach($options as &$option){
//            if($option['value'] == $model->getId()){
//                $option['disabled'] = TRUE;
//                break;
//            }
//        }

//        $options = &$form->getInput('sorting')->getOptions();
//        foreach($options as &$option){
//            if($option['value'] == $model->getSorting()){
//                $option['disabled'] = TRUE;
//                break;
//            }
//        }
    }
}